//初始化一个空Buffer时，会自动创建一些随机值
var buffer=new Buffer(10);
console.log(buffer);
console.log(buffer[0]);
console.log(buffer[0].toString());
console.log(buffer[1]);
console.log(buffer[1].toString());
console.log(buffer[2]);
console.log(buffer[2].toString());

var b1=new Buffer('Hello world');
console.log(b1);
console.log(b1.toString());

var b2=new Buffer('8b76fde713ce','base64');
console.log(b2);
console.log(b2.toString());
console.log(b2.toString('base64'));